<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<gProjeto.Models.quadroEstoria>" %>
<span id="carregando" style="visibility:hidden; display:none;">
<img src="../../Content/images/ajax-loader.gif" /></span>
<% using (Ajax.BeginForm("AnexarSprint", new AjaxOptions()
   {
       Confirm = "Confirma?",
       HttpMethod = "Post",
       InsertionMode = InsertionMode.Replace,
       UpdateTargetId = "EstoriaLista",
       Url = "/Estoria/AnexarSprint"
   })) {%>
    <fieldset>
        <legend><%= "Anexar Estoria : " + ViewData["estoriaId"] + " - "  + ViewData["estoriaNome"]%></legend>
        <p>
            <%= Html.Hidden("estoriaId", ViewData["estoriaId"]) %>
        </p>
        <p>
            <label for="quadroId">Quadro:</label>
            <%= Html.DropDownList("quadroId", "Selecione um quadro")%>
            <%= Html.ValidationMessage("quadroId", "*") %>
        </p>
        <p>
            <input type="submit" value="Anexar"  class = "fg-button fg-button-icon-left ui-state-default ui-corner-all"/>
            <%= Ajax.ActionLink("Cancelar", "EstoriaLista", new { id = ViewData["projetoId"] },
                                  new AjaxOptions() { UpdateTargetId = "EstoriaLista"})%>                
        </p>
    </fieldset>

<% } %>


